package cn.edu.gzgs.service;

import cn.edu.gzgs.entity.Project;
import cn.edu.gzgs.vo.DeclareResponse;
import cn.edu.gzgs.vo.ListDetailResponse;
import cn.edu.gzgs.vo.ProjectTreeVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;


public interface ProjectService extends IService<Project> {

    List<ProjectTreeVO> getProjectTree();
    ListDetailResponse getListDetail(String listId) throws Exception;
    List<Map<String, Object>> getAllProjects();
    List<Map<String, Object>> getListMetaByLeader(String leaderId, String projectId);
    DeclareResponse declareList(
            String leaderId,
            String projectId,
            String tableName,
            List<String> columns,
            List<Map<String, Object>> data
    ) throws Exception;
}